﻿@model IEnumerable<FCNS.ERP.Models.ErpCategoryHouse>

@{
    ViewBag.Title = "公寓";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>@ViewBag.Title</h2>

<p>
    <a class="newObjA" href="/House/CategoryHouseNew">新增</a>
</p>
<table class="table">
    <tr> 
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Summary)
        </th> 
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr> 
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Summary)
        </td> 
        <td>
            @Html.ActionLink("编辑", "CategoryHouseEdit", new { id = item.Id }) |
            <a href="CategoryHouseDelete/@item.Id" class="objDelete">删除</a>

        </td>
    </tr>
}

</table>
